import request from '../utils/request'

export function getOrders() {
    return request({
        url: '/api/order/all',
        method: 'get',

    })
}
export function updateOrders(params) {
    return request({
        url: '/api/order/update',
        method: 'put',
        data: params
    })
}
export function addOrders(params) {
    return request({
        url: '/api/order/add',
        method: 'post',
        data: params
    })
}
export function deleteOrders(params) {
    return request({
        url: '/api/order/delete',
        method: 'delete',
        data: params
    })
}
export function getLineData() {
    return request({
        url: '/api/order/line',
        method: 'get',
    })
}
